<?php  if ( ! defined('BASEPATH')) exit('No direct script access allowed');

class User_Model extends CI_Model {
  public function getName($id) {
    return $this->db->get_where('user', array('id' => $id))->row()->name;
  }
}
